export const freightPaymentTypes = {
  1: "寄付",
  2: "到付",
  3: "第三方支付"
};

// 运单字段
export const waybillParamsList = [{
    label: "姓名",
    value: "allNames",
    type: "name",
    component: "stringInputForm"
  },
  {
    label: "电话",
    value: "allPhones",
    type: "phone",
    component: "stringInputForm"
  },
  {
    label: "地址",
    value: "allAddrs",
    type: "addr",
    component: "addressForm"
  },
  {
    label: "寄件人姓名",
    value: "consignorContNames",
    type: "name",
    component: "stringInputForm"
  },
  {
    label: "寄件人电话",
    value: "consignorMobiles",
    type: "phone",
    component: "stringInputForm"
  },
  {
    label: "寄件人地址",
    value: "consignorAddrs",
    type: "addr",
    component: "addressForm"
  },
  {
    label: "收件人姓名",
    value: "consigneeContNames",
    type: "name",
    component: "stringInputForm"
  },
  {
    label: "收件人电话",
    value: "consigneeMobiles",
    type: "phone",
    component: "stringInputForm"
  },
  {
    label: "收件人地址",
    value: "consigneeAddrs",
    type: "addr",
    component: "addressForm"
  },
  {
    label: "运费付款方式",
    value: "freightPaymentTypeCodes",
    component: "radioOrChechboxForm"
  },
  {
    label: "品类",
    value: "consCategorys",
    component: "cascaderForm"
  },
  {
    label: "声明价值",
    value: "consValue",
    component: "rangeInputForm"
  },
  {
    label: "重量",
    value: "realWeightQty",
    component: "rangeInputForm"
  }
];

// 规则字段
export const ruleParamsList = [{
    label: "寄件人姓名为空",
    value: "consignorContNameEmpty"
  },
  {
    label: "收件人姓名为空",
    value: "consigneeContNameEmpty"
  },
  {
    label: "寄件人与收件人姓名一致",
    value: "sameName"
  },
  {
    label: "寄件人移动电话不在归属地寄件",
    value: "sendCityMobileCityDiff"
  },
  {
    label: "寄件人移动电话为伪装号码",
    value: "consignorMobileInvalid"
  },
  {
    label: "收件人移动电话为伪装号码",
    value: "consigneeMobileInvalid"
  },
  {
    label: "收件人与寄件人固话一致",
    value: "samePhone"
  },
  {
    label: "寄件人与收件人移动电话一致",
    value: "sameMobile"
  }
];

// 运单搜索结果列表表头字段
export const resultFormColumnList = [
  // {
  //     prop: "index",
  //     label: "序号",
  //     width: "80"
  // },
  {
    prop: "waybillNo",
    label: "运单号",
    width: "140"
  },
  {
    prop: "orderTm",
    label: "寄件时间",
    width: "140"
  },
  {
    prop: "consignorContName",
    label: "寄件人姓名",
    width: "90"
  },
  {
    prop: "consignorMobile",
    label: "寄件人移动电话",
    width: "110"
  },
  {
    prop: "consignorPhone",
    label: "寄件人固话",
    width: "100"
  },
  {
    prop: "consignorAddr",
    label: "寄件人地址",
    width: "250"
  },
  {
    prop: "consigneeContName",
    label: "收件人姓名",
    width: "90"
  },
  {
    prop: "consigneeMobile",
    label: "收件人移动电话",
    width: "110"
  },
  {
    prop: "consigneePhone",
    label: "收件人固话",
    width: "100"
  },
  {
    prop: "consigneeAddr",
    label: "收件人地址",
    width: "250"
  },
  {
    prop: "freightPaymentTypeCode",
    label: "运费付款方式",
    width: "110"
  },
  {
    prop: "consName",
    label: "内件品名",
    width: "90"
  },
  {
    prop: "consValue",
    label: "声明价值",
    width: "80"
  },
  {
    prop: "realWeightQty",
    label: "重量",
    width: "80"
  }
];

export const resultFormList = [
  // {
  //     prop: "index",
  //     label: "序号",
  //     width: "80"
  // },
  {
    prop: "expressNo",
    label: "运单号",
    width: "140",
    fixed: 'left',
    disabled: true,
  },
  {
    prop: "companyCode",
    label: "寄件公司",
    width: "140",
    fixed: 'left',
    disabled: true,
  },
  {
    prop: "shipExpressTime",
    label: "寄件时间",
    width: "140",
    fixed: 'left',
    disabled: true,
    sortable: 'custom'
  },
  // {
  //   prop: "label",
  //   label: "行为标签",
  //   width: "240"
  // },
  {
    prop: "senderUsername",
    label: "寄件人姓名",
    width: "120",
    sortable: 'custom'
  },
  {
    prop: "senderPhone",
    label: "寄件人电话",
    width: "120",
    scopedSlots: "phone",
    sortable: 'custom'
  },
  {
    prop: "senderNation",
    label: "寄件人所属民族",
    width: "150",
    scopedSlots: "phone",
    sortable: 'custom'
  },
  {
    prop: "senderSex",
    label: "寄件人性别",
    width: "120",
    sortable: 'custom'
  },
  {
    prop: "senderIdcardType",
    label: "寄件人证件类型",
    width: "150",
    scopedSlots: "phone",
    sortable: 'custom'
  },
  {
    prop: "senderIdcardNo",
    label: "寄件人证件号码",
    width: "180"
  },
  {
    prop: "senderPostalCode",
    label: "寄件人邮编",
    width: "180"
  },
  {
    prop: "senderAddressProvince",
    label: "寄件人省市区",
    width: "180"
  },
  {
    prop: "senderAddress",
    label: "寄件人详细地址",
    width: "280",
    sortable: 'custom'
  },
  // {
  //   prop: "senderCountryCode",
  //   label: "寄件国家代码",
  //   width: "140"
  // },
  {
    prop: "senderCityCode",
    label: "寄件城市代码",
    width: "120"
  },
  //暂无
  {
    prop: "senderNetworkCode",
    label: "寄件网点代码",
    width: "120"
  },
  {
    prop: "receiverUsername",
    label: "收件人姓名",
    width: "120",
    sortable: 'custom'
  },
  {
    prop: "receiverPhone",
    label: "收件人电话",
    width: "120",
    scopedSlots: "phone",
    sortable: 'custom'
  },
  {
    prop: "receiverNation",
    label: "收件人所属民族",
    width: "150",
    sortable: 'custom'
  },
  {
    prop: "receiverSex",
    label: "收件人性别",
    width: "120",
    scopedSlots: "phone",
    sortable: 'custom'
  },
  {
    prop: "receiverIdcardType",
    label: "收件人证件类型",
    width: "150"
  },
  {
    prop: "receiverIdcardNo",
    label: "收件人证件号码",
    width: "180"
  },
  {
    prop: "receiverPostalCode",
    label: "收件人邮编",
    width: "180"
  },
  {
    prop: "receiverAddressProvince",
    label: "收件人省市区",
    width: "180"
  },
  {
    prop: "receiverAddress",
    label: "收件人详细地址",
    width: "280",
    sortable: 'custom'
  },
  // {
  //   prop: "receiverCountryCode",
  //   label: "收件国家代码",
  //   width: "120"
  // },
  {
    prop: "receiverCityCode",
    label: "收件城市代码",
    width: "120"
  },
  //暂无
  {
    prop: "receiverNetworkCode",
    label: "收件网点代码",
    width: "120"
  },
  //暂无
  {
    prop: "expressType",
    label: "寄件类型",
    width: "140",
  },
  {
    prop: "expressGoodsName",
    label: "托寄物描述",
    width: "180"
  },
  {
    prop: "expressInvoicePhoto",
    label: "面单照片URL",
    width: "140",
  },
  {
    prop: "expressBoxPhoto",
    label: "面单开箱验视照片URL",
    width: "140",
  },
  {
    prop: "expressGoodsWeight",
    label: "实际重量（kg）",
    width: "100"
  },
  //暂无
  {
    prop: "signinTm",
    label: "签收时间",
    width: "140"
  },
  {
    prop: "shipLegalPersonName",
    label: "揽件单位法人姓名",
    width: "100",
  },
  {
    prop: "shipLegalPersonPhone",
    label: "揽件单位法人手机号",
    width: "140"
  },
  {
    prop: "shipLegalPersonIdcardNo",
    label: "揽件单位法人身份证号",
    width: "140"
  },
  {
    prop: "shipPlaceManager",
    label: "揽件单位负责人姓名",
    width: "140"
  },
  {
    prop: "shipPlaceManagerPhone",
    label: "揽件单位负责人手机号",
    width: "140"
  },
  {
    prop: "shipPlaceManagerIdccardNo",
    label: "揽件单位负责人身份证号",
    width: "140"
  },
  {
    prop: "shipPlaceAreaCode",
    label: "揽件单位所属辖区编码",
    width: "140"
  },
  {
    prop: "shipPlaceAreaName",
    label: "揽件单位所属辖区名称",
    width: "140"
  },
  {
    prop: "shipStaffIdNumber",
    label: "揽件快递员身份证号",
    width: "140"
  },
  {
    prop: "shipStaffUsername",
    label: "揽件快递员姓名",
    width: "140"
  },
  {
    prop: "shipStaffPhone",
    label: "揽件快递员手机号",
    width: "140"
  },
  {
    prop: "shipStaffNation",
    label: "揽件快递员所属民族",
    width: "140"
  },
  {
    prop: "shipStaffGender",
    label: "揽件快递员性别",
    width: "140"
  },
  {
    prop: "shipStaffIdcardType",
    label: "揽件快递员证件类型",
    width: "140"
  },
  {
    prop: "shipStaffIdcardNo",
    label: "揽件快递员证件号码",
    width: "140"
  },
  {
    prop: "shipStaffAddress",
    label: "揽件快递员居住地址",
    width: "140"
  },
  {
    prop: "shipPlaceName",
    label: "揽件快递员单位名称",
    width: "140"
  },
  {
    prop: "dispatchLegalPersonName",
    label: "派件单位法人姓名",
    width: "140"
  },
  {
    prop: "dispatchLegalPersonPhone",
    label: "派件单位法人手机号",
    width: "140"
  },
  {
    prop: "dispatchLegalPersonIdcardNo",
    label: "派件单位法人身份证号",
    width: "140"
  },
  {
    prop: "dispatchPlaceManager",
    label: "派件单位负责人姓名",
    width: "140"
  },
  {
    prop: "dispatchPlaceManagerPhone",
    label: "派件单位负责人手机号",
    width: "140"
  },
  {
    prop: "dispatchPlaceManagerIdccardNo",
    label: "派件单位负责人身份证号",
    width: "140"
  },
  {
    prop: "dispatchPoliceAreaCode",
    label: "派件单位所属辖区编码",
    width: "140"
  },
  {
    prop: "dispatchPoliceAreaName",
    label: "派件单位所属辖区名称",
    width: "140"
  },
  {
    prop: "dispatchStaffIdNumber",
    label: "派件快递员身份证号",
    width: "140"
  },
  {
    prop: "dispatchStaffUsername",
    label: "派件快递员姓名",
    width: "140"
  },
  {
    prop: "dispatchStaffPhone",
    label: "派件快递员手机号",
    width: "140"
  },
  {
    prop: "dispatchStaffNation",
    label: "派件快递员所属民族",
    width: "140"
  },
  {
    prop: "dispatchStaffGender",
    label: "派件快递员性别",
    width: "140"
  },
  {
    prop: "dispatchStaffIdcardType",
    label: "派件快递员证件类型",
    width: "140"
  },
  {
    prop: "dispatchStaffIdcardNo",
    label: "派件快递员证件号码",
    width: "140"
  },
  {
    prop: "dispatchStaffAddress",
    label: "派件快递员居住地址",
    width: "140"
  },
  {
    prop: "dispatchPlaceName",
    label: "派件快递员单位名称",
    width: "140"
  }
];
export const tableFormList = [{
    prop: "date",
    label: "日期",
    width: "100",
    disabled: true,
  },
  {
    prop: "name",
    label: "姓名",
    width: "80",
  },
  {
    prop: "address",
    label: "地址",
    width: "180",
  },
  {
    prop: "state",
    label: "状态",
    width: "80",
  },
]
// 导出excel时所需的字段
export const resultFormColumnLabel = [
  "运单号",
  "寄件时间",
  "寄件人姓名",
  "寄件人移动电话",
  "寄件人固话",
  "寄件人地址",
  "收件人姓名",
  "收件人移动电话",
  "收件人固话",
  "收件人地址",
  "运费付款方式",
  "托寄物描述",
  "声明价值",
  "重量"
];
export const resultFormColumnProp = [
  "waybillNo",
  "orderTm",
  "consignorContName",
  "consignorMobile",
  "consignorPhone",
  "consignorAddr",
  "consigneeContName",
  "consigneeMobile",
  "consigneePhone",
  "consigneeAddr",
  "freightPaymentTypeCode",
  "consName",
  "consValue",
  "realWeightQty"
];

// 导出excel时所需的字段
// export const resultFormLabel = ["运单号", "行为标签","寄件时间", "寄件人姓名", "寄件人公司", "寄件人电话", "寄件人手机", "寄件人国家/地区", "寄件人省市区", "寄件人详细地址", "寄件国家代码", "收件城市代码", "收件网点代码", "下单渠道", "托寄物描述", "运费付款方式", "运费结算方式", "声明价值", "实际重量", "签收时间", "签收人", "备注"]
// export const resultFormProp = ["waybillNo", "label", "consignedTm", "senderContName", "senderCompany", "senderPhone", "senderMobile", "senderCountryCode", "senderAllArea", "senderAllAddr", "senderCountryCode", "receiverCityCode", "receiverNetworkCode", "orderChannel", "consNames", "paymentTypeCode", "accountTypeCode", "consValue", "realWeight", "signinTm", "signinContName", "waybillRemark"]
// 导出excel时所需的字段
export const resultFormLabel = [
  "运单号",
  "行为标签",
  "寄件时间",
  "寄件人姓名",
  "寄件人公司",
  "寄件人电话",
  "寄件人手机",
  "寄件人国家/地区",
  "寄件人省市区",
  "寄件人详细地址",
  "收件城市代码",
  "收件网点代码",
  "下单渠道",
  "托寄物描述",
  "运费付款方式",
  "运费结算方式",
  "声明价值",
  "实际重量",
  "签收时间",
  "签收人",
  "备注"
];
export const resultFormProp = [
  "waybillNo",
  "label",
  "consignedTm",
  "senderContName",
  "senderCompany",
  "senderPhone",
  "senderMobile",
  "senderCountryCode",
  "senderAllArea",
  "senderAllAddr",
  "receiverCityCode",
  "receiverNetworkCode",
  "orderChannel",
  "consNames",
  "paymentTypeCode",
  "accountTypeCode",
  "consValue",
  "realWeight",
  "signinTm",
  "signinContName",
  "waybillRemark"
];

// Filter的icon（因为是动态引入不同的Filter，使用资源路径会导致编译后无法正确匹配到资源，故转为base64）
export const base64Icons = {
  name: "",
  allNames: "",
  addr: "",
  allAddrs: "",
  phone: "",
  allPhones: "",
  consigneeAddrs: "",
  consigneeContNames: "",
  consigneeMobiles: "",
  consignorAddrs: "",
  consignorContNames: "",
  consignorMobiles: "",
  freightPaymentTypeCodes: "",
  consCategorys: "",
  consValue: "",
  realWeightQty: "",
  consignorContNameEmpty: "",
  consignorMobileInvalid: "",
  consigneeContNameEmpty: "",
  consigneeMobileInvalid: "",
  sameMobile: "",
  sameName: "",
  samePhone: "",
  sendCityMobileCityDiff: ""
};